package com.fifth.emp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fifth.emp.vo.RoleVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 徐志豪
 * @since 2022-09-02
 */
@Mapper
public interface RoleMapperVo extends BaseMapper<RoleVo> {


    void insertP(@Param("roleId") String roleId, @Param("permission") String permissionId);

    int insertRole(@Param("id") String id,@Param("roleName") String roleName,@Param("remark") String remark, @Param("status") String status);

    int insertPermission(List<String> permissionId,@Param("roleId") String roleVoId);

}
